# encoding: utf-8
class CreateBugs < ActiveRecord::Migration
  def self.up
    create_table :bugs do |t|
      t.string :title, :default => '', :null => false
      t.integer :project_id
      t.integer :topic_id
      t.integer :author_id
      t.integer :processor_id
      t.text :description
      t.string :status, :default => 'open'
      t.string :priority, :default => 'low'

      t.timestamps
    end
  end

  def self.down
    drop_table :bugs
  end
end
